10.0
CRITICAL CVSS 3.0
CVE-2024-0520
Apache MLflow Command Injection Vulnerability
Description

A vulnerability in mlflow/mlflow version 8.2.1 allows for remote code execution due to improper neutralization of special elements used in an OS command ('Command Injection') within the `mlflow.data.http_dataset_source.py` module. Specifically, when loading a dataset from a source URL with an HTTP scheme, the filename extracted from the `Content-Disposition` header or the URL path is used to generate the final file path without proper sanitization. This flaw enables an attacker to control the file path fully by utilizing path traversal or absolute path techniques, such as '../../tmp/poc.txt' or '/tmp/poc.txt', leading to arbitrary file write. Exploiting this vulnerability could allow a malicious user to execute commands on the vulnerable machine, potentially gaining access to data and model information. The issue is fixed in version 2.9.0.

INFO

Published Date :

June 6, 2024, 7:15 p.m.

Last Modified :

Nov. 21, 2024, 8:46 a.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2024-0520 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Lfprojects mlflow
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.0 CRITICAL [email protected]
CVSS 3.1 HIGH [email protected]
Public PoC/Exploit Available at Github

CVE-2024-0520 has a 2 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2024-0520.

URL Resource
https://github.com/mlflow/mlflow/commit/400c226953b4568f4361bc0a0c223511652c2b9d Patch
https://huntr.com/bounties/93e470d7-b6f0-409b-af63-49d3e2a26dbc Exploit Issue Tracking Patch Third Party Advisory
https://github.com/mlflow/mlflow/commit/400c226953b4568f4361bc0a0c223511652c2b9d Patch
https://huntr.com/bounties/93e470d7-b6f0-409b-af63-49d3e2a26dbc Exploit Issue Tracking Patch Third Party Advisory
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2024-0520 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

None

Updated: 1 week ago
0 stars 0 fork 0 watcher
Born at : Aug. 18, 2025, 1:54 p.m. This repo has been linked 1 different CVEs too.

📡 PoC auto collect from GitHub. ⚠️ Be careful Malware.

security cve exploit poc vulnerability

Updated: 7 hours, 7 minutes ago
7213 stars 1201 fork 1201 watcher
Born at : Dec. 8, 2019, 1:03 p.m. This repo has been linked 805 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2024-0520 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2024-0520 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://github.com/mlflow/mlflow/commit/400c226953b4568f4361bc0a0c223511652c2b9d
    Added Reference https://huntr.com/bounties/93e470d7-b6f0-409b-af63-49d3e2a26dbc
  • Initial Analysis by [email protected]

    Oct. 11, 2024

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
    Changed Reference Type https://github.com/mlflow/mlflow/commit/400c226953b4568f4361bc0a0c223511652c2b9d No Types Assigned https://github.com/mlflow/mlflow/commit/400c226953b4568f4361bc0a0c223511652c2b9d Patch
    Changed Reference Type https://huntr.com/bounties/93e470d7-b6f0-409b-af63-49d3e2a26dbc No Types Assigned https://huntr.com/bounties/93e470d7-b6f0-409b-af63-49d3e2a26dbc Exploit, Issue Tracking, Patch, Third Party Advisory
    Added CWE NIST CWE-22
    Added CPE Configuration OR *cpe:2.3:a:lfprojects:mlflow:*:*:*:*:*:*:*:* versions up to (excluding) 2.9.0
  • CVE Received by [email protected]

    Jun. 06, 2024

    Action Type Old Value New Value
    Added Description A vulnerability in mlflow/mlflow version 8.2.1 allows for remote code execution due to improper neutralization of special elements used in an OS command ('Command Injection') within the `mlflow.data.http_dataset_source.py` module. Specifically, when loading a dataset from a source URL with an HTTP scheme, the filename extracted from the `Content-Disposition` header or the URL path is used to generate the final file path without proper sanitization. This flaw enables an attacker to control the file path fully by utilizing path traversal or absolute path techniques, such as '../../tmp/poc.txt' or '/tmp/poc.txt', leading to arbitrary file write. Exploiting this vulnerability could allow a malicious user to execute commands on the vulnerable machine, potentially gaining access to data and model information. The issue is fixed in version 2.9.0.
    Added Reference huntr.dev https://huntr.com/bounties/93e470d7-b6f0-409b-af63-49d3e2a26dbc [No types assigned]
    Added Reference huntr.dev https://github.com/mlflow/mlflow/commit/400c226953b4568f4361bc0a0c223511652c2b9d [No types assigned]
    Added CWE huntr.dev CWE-23
    Added CVSS V3 huntr.dev AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 8.8
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact
Base CVSS Score: 10
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact